<?php

/**
 * Lodging form.
 *
 * @package    SchelkinoBiz
 * @subpackage form
 * @author     Delight
 */
class LodgingForm extends BaseLodgingForm
{
    public function configure()
    {
        unset(
            $this['updated_at']
        );

        $this->widgetSchema['lodging_comfort'] = new sfWidgetFormPropelChoice(array(
            'model'      => 'LodgingComfort',
            'multiple'   => true,
            'expanded'   => true,
            'key_method' => 'getLodgingComfort',
        ));

        $this->validatorSchema['lodging_comfort'] = new sfValidatorPropelMultipleChoice(array(
            'model'    => 'LodgingComfort',
            'multiple' => true,
            'required' => false,
            'column'   => 'lodging_comfort',
        ));

        $this->widgetSchema['lodging_description'] = new sfWidgetFormFCKEditor();
    }
}
